function onLogin() {
    var userNameEle = document.getElementById('username')
    var userName = userNameEle.value

    var passWordEle = document.getElementById('password')
    var passWord = passWordEle.value

    if (userName == 'admin' && passWord == '123456') {
        alert('登录成功')
    } else {
        alert('用户名或密码出错')
    }
}